package com.gopay.common.domain.bis;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/** 
 * 直接代收通道配置表
 * @ClassName: BisDirectAdPayConfig 
 * @author w_jiqing 
 * @date 2017年10月13日 下午2:56:31  
 */ 
@Entity
@Table(name = "BIS_DIRECT_ADPAY_CH_CFG")
public class BisDirectAdPayConfig extends BaseBisBankExtConfig{
    
    private static final long serialVersionUID = 1007714741429566249L;

    /**
     * 流水号
     */
    @Id
    @Column(name = "SQ")
    @SequenceGenerator(name="BIS_DIRECT_ADPAY_CH_CFG_SQ_GENERATOR", sequenceName="BIS_DIRECT_ADPAY_CH_CFG_SEQ",allocationSize=1,initialValue=1)
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="BIS_DIRECT_ADPAY_CH_CFG_SQ_GENERATOR")
    private int id;

    /**
     * 是否支持借记卡
     * 
     * 0 - 否 1 - 是
     */
    @Column(name = "IS_DEBIT_CARD", nullable = false, precision = 1, scale = 0)
    private boolean debitCard;

    /**
     * 是否支持信用卡
     * 
     * 0 - 否 1 - 是
     */
    @Column(name = "IS_CREDIT_CARD", nullable = false, precision = 1, scale = 0)
    private boolean creditCard;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public boolean isDebitCard() {
        return debitCard;
    }

    public void setDebitCard(boolean debitCard) {
        this.debitCard = debitCard;
    }

    public boolean isCreditCard() {
        return creditCard;
    }

    public void setCreditCard(boolean creditCard) {
        this.creditCard = creditCard;
    }
    
    
    
    

}
